# vowel=['I', 'e', 'e', 'A']
#
# s="AceCreIm"
#
# result=[char for i,char in enumerate(s) if char in vowel ]
# j=0
# result=result[::-1]
# s_lis=[x for x in s if x != ""]
# for i in range(len(s_lis)):
#    if s_lis[i] in vowel:
#       s_lis[i]=result[j]
#       j+=1
#    else:continue
# print(''.join(s_lis))
#

##双指针
#
# vowel=['a','e','i','o','u']
# s = "leetcod"
# s_lis=list(s)
#
# left=0
# right=len(s_lis)-1
# print(len(s_lis))
# while left<right:
#     while  s_lis[left].lower()  not in vowel:
#         left+=1
#
#     while  s_lis[right].lower() not  in vowel:
#         right-=1
#
#     if left<right:
#        s_lis[left],s_lis[right]=s_lis[right],s_lis[left]
#        left+=1
#        right-=1
# print(''.join(s_lis))

v=set('aeiouAEIOU')
s=set('sbedkuygesksnxwedwiudxoceijeonciueAEKDJBEIWU')
s_lis=list(s)


l,r=0,len(s_lis)-1

while l<r:
    # 找到左边
    while l<len(s_lis) and s_lis[l] not in v:
        l+=1
    while r>=0 and s_lis[r] not in v:
        r-=1
    s_lis[l],s_lis[r]=s_lis[r],s_lis[l]
    l+=1
    r-=1
print(''.join(s_lis))




